package Demo2;

import java.util.concurrent.LinkedBlockingQueue;

public class Demo23 {
    public static void main(String[] args) {
        LinkedBlockingQueue<String>queue=new LinkedBlockingQueue<>();
        for (int i = 0; i <100 ; i++) {
            queue.add("HHHHHHHH");
        }

        queue.add("idusfiuehw");
        System.out.println("队列满了");

    }

}
